package com.zlsy.springbootdemo.state.demo3;

/**
 * @author zhouliang
 * @date 2021/1/23 13:26
 */
public class RewardStateContext {
  private RewardState rewardState;

  public RewardState getRewardState() {
    return rewardState;
  }

  public void setRewardState(RewardState rewardState) {
    this.rewardState = rewardState;
    this.rewardState.setRewardStateContext(this);
  }

  public void echo(RewardStateContext context, Request request) {
    rewardState.doReward(context, request);
  }
}
